package com.java1234.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.java1234.dao.BloggerDao;
import com.java1234.entity.Blogger;
import com.java1234.service.BloggerService;

/**
 * 
  * @Project: Blog
  * @Title: BloggerServiceImpl
  * @Description: 博主Service实现类
  * @author: zhangxue
  * @date: 2016年12月18日下午1:08:16
  * @company: webyun
  * @Copyright: Copyright (c) 2015
  * @version v1.0
 */
@Service("bloggerService")
public class BloggerServiceImpl implements BloggerService{

	@Resource
	private BloggerDao bloggerDao;

	public Blogger find() {
		return bloggerDao.find();
	}

	public Blogger getByUserName(String userName) {
		return bloggerDao.getByUserName(userName);
	}

	public Integer update(Blogger blogger) {
		return bloggerDao.update(blogger);
	}
	
	
}
